﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UIObjects
{
    public class InternalMessageEventArgs : EventArgs
    {
        public Exception Exception { get; protected set; }
        public string Message { get; protected set; }

        public InternalMessageEventArgs(Exception exception) : this(null, exception)
        {
        }

        public InternalMessageEventArgs(string message, Exception exception)
        {
            Message = message;
            Exception = exception;
        }

        public InternalMessageEventArgs(string message)
            : this(message, null)
        {
        }
    }
}
